package com.yang.designmode.decorator;

public class SugarDecorator extends CoffeeDecorator {
    public SugarDecorator(Coffee coffee) {
        super(coffee);
    }

    @Override
    public double cost() {
        return super.cost() + 0.2; // 加糖的价格
    }

    @Override
    public String description() {
        return super.description() + ", Sugar";
    }
}

